package com.zhousb.deviceManager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhousb.deviceManager.model.entity.KiTransferRecord;
import com.zhousb.deviceManager.model.so.TransferRecordSo;
import com.zhousb.deviceManager.model.vo.TransferRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhousb
 * @date 2024/11/1 14:40
 * @description
 */

public interface KiTransferRecordMapper extends BaseMapper<KiTransferRecord> {

    void batchInsert(@Param("list") List<KiTransferRecord> list,
                     @Param("currentFloor")String currentFloor,
                     @Param("currentPosition")String currentPosition,
                     @Param("currentAddress")String currentAddress,
                     @Param("reason")String reason,
                     @Param("transferBy")Long transferBy
                     );

    IPage<TransferRecordVo> page(Page page, @Param("so")TransferRecordSo so);
}
